import request from '@/utils/request'

// 查询订单确认列表
export function listConfirm(query) {
  return request({
    url: '/manage/confirm/list',
    method: 'get',
    params: query
  })
}

// 查询订单确认详细
export function getConfirm(id) {
  return request({
    url: '/manage/confirm/' + id,
    method: 'get'
  })
}

// 新增订单确认
export function addConfirm(data) {
  return request({
    url: '/manage/confirm',
    method: 'post',
    data: data
  })
}

// 修改订单确认
export function updateConfirm(data) {
  return request({
    url: '/manage/confirm',
    method: 'put',
    data: data
  })
}

// 删除订单确认
export function delConfirm(id) {
  return request({
    url: '/manage/confirm/' + id,
    method: 'delete'
  })
}
